/*
 * @Author: zhanglianchang
 * @Date: 2020-08-01 14:39:32
 * @Last Modified by: taoshiwei
 * @Last Modified time: 2019-04-29 14:53:23
 *
 * 学科有关的接口：自己写吧~~  已经被张老师删了 ^_^
 */
import { createAPI } from "@/utils/request";
// 获取学科列表
export const listSubjects = data => createAPI("/subjects", "get", data);
export const add = data => createAPI("/subjects", "post", data);
export const getSubjectById = id => createAPI(`/subjects/${id}`, "get");
export const editeSubjectById = data => createAPI(`/subjects/${data.id}`, "put",data);
export const deleteSubjectById = id => createAPI(`/subjects/${id}`, "delete");
export const getsimplesubject = data => createAPI(`/subjects/simple`, "get",data);
